import { get, remove, set } from 'js-cookie';

/**
 * 查询cookie
 * @param name
 * @returns
 */
export const getCookie = (name: string) => get(name) || '';

/**
 * 设置cookie
 * @param name
 * @param value
 * @returns
 */
export const setCookie = (name: string, value: string | any) => set(name, value);

/**
 * 移除cookie
 * @param name
 * @returns
 */
export const removeCookie = (name: string) => remove(name);
